const _import = require('src/router/_import_' + process.env.NODE_ENV)
import { PopupName } from 'src/consts/popup_const';
/**
 * 弹窗创建工厂
 * @param name 弹窗名字
 */
export const createPopup = function (name: string): any {
    var v: any;
    console.log("create popup", name);
    switch (name) {
        case PopupName.Pass_Word:
            v = _import('layout/comps/changePassWord');
            break;
        case PopupName.Org_Panel:
            v = _import('org/org_panel');
            break;
        case PopupName.Org_Add_Panel:
            v = _import('org/org_add_panel');
            break;
        case PopupName.Org_Acc_Panel:
            v = _import('org/org_acc_panel');
            break;
        case PopupName.Acc_Panel:
            v = _import('acc_manage/acc_panel');
            break;
        case PopupName.Acc_Add_Panel:
            v = _import('acc_manage/acc_add_panel');
            break;
        case PopupName.Acc_Org_Panel:
            v = _import('acc_manage/acc_org_panel');
            break;
        case PopupName.Member_Panel:
            v = _import('member/member_panel');
            break;
        case PopupName.Member_Add_Panel:
            v = _import('member/member_add_panel');
            break;
        case PopupName.Member_Set_Panel:
            v = _import('member/member_set_panel');
            break;
        case PopupName.AuditT_Panel:
            v = _import('audit_template/auditT_panel');
            break;
        case PopupName.AuditT_Business_Panel:
            v = _import('audit_template/auditT_business_panel');
            break;
        case PopupName.AuditT_Role:
            v = _import('audit_template/auditT_role');
            break;
        case PopupName.WebM_Panel:
            v = _import('web_manage/webM_panel');
            break;
        case PopupName.WebM_Set_Panel:
            v = _import('web_manage/webM_set_panel');
            break;
        case PopupName.WebM_ReSet_Panel:
            v = _import('web_manage/webM_reSet_panel');
            break;
        case PopupName.WebM_UpLoad_Panel:
            v = _import('web_manage/webM_upLoad_panel');
            break;
        case PopupName.WebM_Config_Panel:
            v = _import('web_manage/webM_config_panel');
            break;
        case PopupName.WebM_Acc_Panel:
            v = _import('web_manage/webM_acc_panel');
            break;
        case PopupName.WebM_Ca_Panel:
            v = _import('web_manage/webM_ca_panel');
            break;
        case PopupName.WebV_Panel:
            v = _import('web_visit/webV_add_panel');
            break;
        case PopupName.AuditM_Status:
            v = _import('audit_manage/auditM_status');
            break;
        case PopupName.AuditM_Panel:
            v = _import('audit_manage/auditM_panel');
            break;
        case PopupName.AuditM_Audit:
            v = _import('audit_manage/auditM_audit');
            break;
    }
    return v;
}